package com.clouds.wms.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.clouds.wms.bean.Purma;
import com.clouds.wms.dao.PurmaDao;
import com.clouds.wms.exception.SysException;
import com.clouds.wms.util.PagesBean;

@Service("purmaService")
public class PurmaServiceImpl implements PurmaService {
	@Resource(name="purmaDao")
	private PurmaDao purmaDao;

	@Override
	public PagesBean getPurmaList(String maaa, String maab, String maac,String startMaad, String endMaad, int offset, int pageSize)	throws SysException {
		return purmaDao.getPurmaList(maaa, maab, maac, startMaad, endMaad, offset, pageSize);
	}

	@Override
	public Purma getPurma(String maaa,String maab) throws SysException {
		return purmaDao.getPurma(maaa,maab);
	}

	@Override
	public int savePurca(Purma purma) throws SysException {
		return purmaDao.savePurca(purma);
	}
	
}
